#include "snapshoteditortab.h"


SnapshotEditorTab::SnapshotEditorTab(QWidget *parent)
    : QWidget(parent)
{
    setupUi(this);
    KFile::Modes mode = KFile::Directory;
    m_dirurlrequest->setMode(mode);
    m_destdirurlrequest->setMode(mode);
}

void SnapshotEditorTab::editSnapshot(Snapshot *s)
{
  m_currsnapshot=s;
  m_namelabel->setText(m_currsnapshot->name());
  m_dirurlrequest->setUrl(m_currsnapshot->basedir());
  m_destdirurlrequest->setUrl(m_currsnapshot->destdir());
  //m_backendname
}

void SnapshotEditorTab::save()
{
m_currsnapshot->setBasedir(m_dirurlrequest->text());
m_currsnapshot->setDestdir(m_destdirurlrequest->text());
}

#include "snapshoteditortab.moc"

